package com.itheima.thread.synchronizedTest;

/**
 * @Author: Ethan Yankang
 * @Program: Interview
 * @Date: 2024-08-04 21:24
 **/

public class Sync {
    static final Object lock = new Object();
    static int counter = 0;
    public static void main(String[] args) {
        synchronized (lock) {
            counter++;
        }
    }
}